package utils

import (
	"fmt"
)

func Multable () {
	for i := 1; i <= 9; i++ {
		for j :=1; j <= i; j++ {
			fmt.Printf("%v*%v=%v\t",i,j,i*j)
		}
		fmt.Println()
	}
}

func Pyr () {
	for i := 1; i <= 5; i++ {
		for j := i; j <= 5; j++ {
			fmt.Print(" ")
		}
		for j := 1; j <= 2*i-1; j++ {
			fmt.Print("*")
		}
		fmt.Println()
	}
}

func Fbs (n int) int {
	if n <= 1 {
		return n
	}else {
		return Fbs(n-1) + Fbs(n-2)
	}
}